home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / drivers / phoenix.c < prev    next >
C/C++ Source or Header  |  2000-04-04  |  23KB  |  592 lines

  1. /***************************************************************************
  2.  
  3. Phoenix memory map
  4.  
  5. driver by Richard Davies
  6.  
  7. Note:
  8.    pleiads is using another sound driver, sndhrdw\pleiads.c
  9.  Andrew Scott (ascott@utkux.utcc.utk.edu)
  10.  
  11. 0000-3fff 16Kb Program ROM
  12. 4000-43ff 1Kb Video RAM Charset A (4340-43ff variables)
  13. 4800-4bff 1Kb Video RAM Charset B (4b40-4bff variables)
  14. 5000-53ff 1Kb Video Control write-only (mirrored)
  15. 5800-5bff 1Kb Video Scroll Register (mirrored)
  16. 6000-63ff 1Kb Sound Control A (mirrored)
  17. 6800-6bff 1Kb Sound Control B (mirrored)
  18. 7000-73ff 1Kb 8bit Game Control read-only (mirrored)
  19. 7800-7bff 1Kb 8bit Dip Switch read-only (mirrored)
  20.  
  21. memory mapped ports:
  22.  
  23. read-only:
  24. 7000-73ff IN
  25. 7800-7bff DSW
  26.  
  27.  * IN (all bits are inverted)
  28.  * bit 7 : Shield
  29.  * bit 6 : Left
  30.  * bit 5 : Right
  31.  * bit 4 : Fire
  32.  * bit 3 : -
  33.  * bit 2 : Start 2
  34.  * bit 1 : Start 1
  35.  * bit 0 : Coin
  36.  
  37.  * DSW
  38.  * bit 7 : VBlank
  39.  * bit 6 : free play (pleiads only)
  40.  * bit 5 : attract sound 0 = off 1 = on (pleiads only?)
  41.  * bit 4 : coins per play  0 = 1 coin  1 = 2 coins
  42.  * bit 3 :\ bonus
  43.  * bit 2 :/ 00 = 3000  01 = 4000  10 = 5000  11 = 6000
  44.  * bit 1 :\ number of lives
  45.  * bit 0 :/ 00 = 3    01 = 4    10 = 5    11 = 6
  46.  
  47. ***************************************************************************/
  48.  
  49. #include "driver.h"
  50.  
  51.  
  52. READ_HANDLER( phoenix_paged_ram_r );
  53. WRITE_HANDLER( phoenix_paged_ram_w );
  54. WRITE_HANDLER( phoenix_videoreg_w );
  55. WRITE_HANDLER( phoenix_scroll_w );
  56. READ_HANDLER( phoenix_input_port_0_r );
  57. void phoenix_vh_convert_color_prom(unsigned char *palette, unsigned short *colortable,const unsigned char *color_prom);
  58. int  phoenix_vh_start(void);
  59. void phoenix_vh_stop(void);
  60. void phoenix_vh_screenrefresh(struct osd_bitmap *bitmap,int full_refresh);
  61.  
  62. WRITE_HANDLER( phoenix_sound_control_a_w );
  63. WRITE_HANDLER( phoenix_sound_control_b_w );
  64. int phoenix_sh_start(const struct MachineSound *msound);
  65. void phoenix_sh_stop(void);
  66. void phoenix_sh_update(void);
  67.  
  68. WRITE_HANDLER( pleiads_sound_control_a_w );
  69. WRITE_HANDLER( pleiads_sound_control_b_w );
  70. int pleiads_sh_start(const struct MachineSound *msound);
  71. void pleiads_sh_stop(void);
  72. void pleiads_sh_update(void);
  73.  
  74.  
  75. static struct MemoryReadAddress readmem[] =
  76. {
  77.     { 0x0000, 0x3fff, MRA_ROM },
  78.     { 0x4000, 0x4fff, phoenix_paged_ram_r },    /* 2 pages selected by Bit 0 of videoregister */
  79.     { 0x7000, 0x73ff, phoenix_input_port_0_r }, /* IN0 */
  80.     { 0x7800, 0x7bff, input_port_1_r },         /* DSW */
  81.     { -1 }    /* end of table */
  82. };
  83.  
  84.  
  85. #define WRITEMEM(GAMENAME)                                        \
  86.                                                                 \
  87. static struct MemoryWriteAddress GAMENAME##_writemem[] =        \
  88. {                                                                \
  89.     { 0x0000, 0x3fff, MWA_ROM },                                \
  90.     { 0x4000, 0x4fff, phoenix_paged_ram_w },  /* 2 pages selected by Bit 0 of the video register */ \
  91.     { 0x5000, 0x53ff, phoenix_videoreg_w },                     \
  92.     { 0x5800, 0x5bff, phoenix_scroll_w },    /* the game sometimes writes at mirror addresses */     \
  93.     { 0x6000, 0x63ff, GAMENAME##_sound_control_a_w },            \
  94.     { 0x6800, 0x6bff, GAMENAME##_sound_control_b_w },            \
  95.     { -1 }    /* end of table */                                    \
  96. };
  97.  
  98. WRITEMEM(phoenix)
  99. WRITEMEM(pleiads)
  100.  
  101.  
  102.  
  103. INPUT_PORTS_START( phoenix )
  104.     PORT_START        /* IN0 */
  105.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
  106.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
  107.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 )
  108.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED )
  109.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
  110.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_2WAY )
  111.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_2WAY )
  112.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 )
  113.  
  114.     PORT_START        /* DSW0 */
  115.     PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
  116.     PORT_DIPSETTING(    0x00, "3" )
  117.     PORT_DIPSETTING(    0x01, "4" )
  118.     PORT_DIPSETTING(    0x02, "5" )
  119.     PORT_DIPSETTING(    0x03, "6" )
  120.     PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) )
  121.     PORT_DIPSETTING(    0x00, "3000" )
  122.     PORT_DIPSETTING(    0x04, "4000" )
  123.     PORT_DIPSETTING(    0x08, "5000" )
  124.     PORT_DIPSETTING(    0x0c, "6000" )
  125.     PORT_DIPNAME( 0x10, 0x00, DEF_STR( Coinage ) )
  126.     PORT_DIPSETTING(    0x10, DEF_STR( 2C_1C ) )
  127.     PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
  128.     PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
  129.     PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
  130.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  131.     PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
  132.     PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
  133.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  134.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
  135. INPUT_PORTS_END
  136.  
  137. INPUT_PORTS_START( phoenixa )
  138.     PORT_START        /* IN0 */
  139.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
  140.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
  141.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 )
  142.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED )
  143.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
  144.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_2WAY )
  145.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_2WAY )
  146.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 )
  147.  
  148.     PORT_START        /* DSW0 */
  149.     PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
  150.     PORT_DIPSETTING(    0x00, "3" )
  151.     PORT_DIPSETTING(    0x01, "4" )
  152.     PORT_DIPSETTING(    0x02, "5" )
  153.     PORT_DIPSETTING(    0x03, "6" )
  154.     PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) )
  155.     PORT_DIPSETTING(    0x00, "3000" )
  156.     PORT_DIPSETTING(    0x04, "4000" )
  157.     PORT_DIPSETTING(    0x08, "5000" )
  158.     PORT_DIPSETTING(    0x0c, "6000" )
  159.     /* Coinage is backwards from phoenix (Amstar) */
  160.     PORT_DIPNAME( 0x10, 0x10, DEF_STR( Coinage ) )
  161.     PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
  162.     PORT_DIPSETTING(    0x10, DEF_STR( 1C_1C ) )
  163.     PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
  164.     PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
  165.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  166.     PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
  167.     PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
  168.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  169.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
  170. INPUT_PORTS_END
  171.  
  172.  
  173. INPUT_PORTS_START( phoenixt )
  174.     PORT_START        /* IN0 */
  175.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
  176.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
  177.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 )
  178.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
  179.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
  180.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_2WAY )
  181.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_2WAY )
  182.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 )
  183.  
  184.     PORT_START        /* DSW0 */
  185.     PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
  186.     PORT_DIPSETTING(    0x00, "3" )
  187.     PORT_DIPSETTING(    0x01, "4" )
  188.     PORT_DIPSETTING(    0x02, "5" )
  189.     PORT_DIPSETTING(    0x03, "6" )
  190.     PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) )
  191.     PORT_DIPSETTING(    0x00, "3000" )
  192.     PORT_DIPSETTING(    0x04, "4000" )
  193.     PORT_DIPSETTING(    0x08, "5000" )
  194.     PORT_DIPSETTING(    0x0c, "6000" )
  195.     PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
  196.     PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
  197.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  198.     PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
  199.     PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
  200.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  201.     PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
  202.     PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
  203.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  204.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
  205. INPUT_PORTS_END
  206.  
  207. INPUT_PORTS_START( phoenix3 )
  208.     PORT_START        /* IN0 */
  209.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
  210.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
  211.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 )
  212.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
  213.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
  214.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_2WAY )
  215.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_2WAY )
  216.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 )
  217.     PORT_START        /* DSW0 */
  218.     PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
  219.     PORT_DIPSETTING(    0x00, "3" )
  220.     PORT_DIPSETTING(    0x01, "4" )
  221.     PORT_DIPSETTING(    0x02, "5" )
  222.     PORT_DIPSETTING(    0x03, "6" )
  223.     PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) )
  224.     PORT_DIPSETTING(    0x00, "3000" )
  225.     PORT_DIPSETTING(    0x04, "4000" )
  226.     PORT_DIPSETTING(    0x08, "5000" )
  227.     PORT_DIPSETTING(    0x0c, "6000" )
  228.     PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
  229.     PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
  230.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  231.     PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
  232.     PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
  233.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  234.     PORT_DIPNAME( 0x40, 0x00, DEF_STR( Coinage ) )
  235.     PORT_DIPSETTING(    0x40, DEF_STR( 2C_1C ) )
  236.     PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
  237.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
  238. INPUT_PORTS_END
  239.  
  240.  
  241. INPUT_PORTS_START( pleiads )
  242.     PORT_START        /* IN0 */
  243.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
  244.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
  245.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 )
  246.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )       /* Protection. See 0x0552 */
  247.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
  248.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_2WAY )
  249.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_2WAY )
  250.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 )
  251.     PORT_START        /* DSW0 */
  252.     PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
  253.     PORT_DIPSETTING(    0x00, "3" )
  254.     PORT_DIPSETTING(    0x01, "4" )
  255.     PORT_DIPSETTING(    0x02, "5" )
  256.     PORT_DIPSETTING(    0x03, "6" )
  257.     PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) )
  258.     PORT_DIPSETTING(    0x00, "3000" )
  259.     PORT_DIPSETTING(    0x04, "4000" )
  260.     PORT_DIPSETTING(    0x08, "5000" )
  261.     PORT_DIPSETTING(    0x0c, "6000" )
  262.     PORT_DIPNAME( 0x10, 0x00, DEF_STR( Coinage ) )
  263.     PORT_DIPSETTING(    0x10, DEF_STR( 2C_1C ) )
  264.     PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
  265.     PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
  266.     PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
  267.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  268.     PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
  269.     PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
  270.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  271.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )
  272. INPUT_PORTS_END
  273.  
  274.  
  275. static struct GfxLayout charlayout =
  276. {
  277.     8,8,    /* 8*8 characters */
  278.     256,    /* 256 characters */
  279.     2,    /* 2 bits per pixel */
  280.     { 256*8*8, 0 }, /* the two bitplanes are separated */
  281.     { 7, 6, 5, 4, 3, 2, 1, 0 }, /* pretty straightforward layout */
  282.     { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
  283.     8*8 /* every char takes 8 consecutive bytes */
  284. };
  285.  
  286. static struct GfxDecodeInfo gfxdecodeinfo[] =
  287. {
  288.     { REGION_GFX1, 0, &charlayout,      0, 16 },
  289.     { REGION_GFX2, 0, &charlayout, 16*4, 16 },
  290.     { -1 } /* end of array */
  291. };
  292.  
  293.  
  294.  
  295. static struct TMS36XXinterface phoenix_tms36xx_interface =
  296. {
  297.     1,
  298.     { 50 },         /* mixing levels */
  299.     { MM6221AA },    /* TMS36xx subtype(s) */
  300.     { 372  },        /* base frequency */
  301.     { {0.50,0,0,1.05,0,0} }, /* decay times of voices */
  302.     { 0.21 },       /* tune speed (time between beats) */
  303. };
  304.  
  305. static struct CustomSound_interface phoenix_custom_interface =
  306. {
  307.     phoenix_sh_start,
  308.     phoenix_sh_stop,
  309.     phoenix_sh_update
  310. };
  311.  
  312. static struct TMS36XXinterface pleiads_tms36xx_interface =
  313. {
  314.     1,
  315.     { 75        },    /* mixing levels */
  316.     { TMS3615    },    /* TMS36xx subtype(s) */
  317.     { 247        },    /* base frequencies (one octave below A) */
  318.     /*
  319.      * Decay times of the voices; NOTE: it's unknown if
  320.      * the the TMS3615 mixes more than one voice internally.
  321.      * A wav taken from Pop Flamer sounds like there
  322.      * are at least no 'odd' harmonics (5 1/3' and 2 2/3')
  323.      */
  324.     { {0.33,0.33,0,0.33,0,0.33} }
  325. };
  326.  
  327. static struct CustomSound_interface pleiads_custom_interface =
  328. {
  329.     pleiads_sh_start,
  330.     pleiads_sh_stop,
  331.     pleiads_sh_update
  332. };
  333.  
  334. #define MACHINE_DRIVER(GAMENAME)                                    \
  335.                                                                     \
  336. static struct MachineDriver machine_driver_##GAMENAME =             \
  337. {                                                                    \
  338.     /* basic machine hardware */                                    \
  339.     {                                                                \
  340.         {                                                            \
  341.             CPU_8080,                                                \
  342.             3072000,    /* 3 Mhz ? */                                \
  343.             readmem,GAMENAME##_writemem,0,0,                        \
  344.             ignore_interrupt,1                                        \
  345.         }                                                            \
  346.     },                                                                \
  347.     60, DEFAULT_REAL_60HZ_VBLANK_DURATION,    /* frames per second, vblank duration */    \
  348.     1,    /* single CPU, no need for interleaving */                    \
  349.     0,                                                                \
  350.                                                                     \
  351.     /* video hardware */                                            \
  352.     32*8, 32*8, { 0*8, 31*8-1, 0*8, 26*8-1 },                        \
  353.     gfxdecodeinfo,                                                    \
  354.     256,16*4+16*4,                                                    \
  355.     phoenix_vh_convert_color_prom,                                    \
  356.                                                                     \
  357.     VIDEO_TYPE_RASTER,                                                \
  358.     0,                                                                \
  359.     phoenix_vh_start,                                                \
  360.     phoenix_vh_stop,                                                \
  361.     phoenix_vh_screenrefresh,                                        \
  362.                                                                     \
  363.     /* sound hardware */                                            \
  364.     0,0,0,0,                                                        \
  365.     {                                                                \
  366.         {                                                            \
  367.             SOUND_TMS36XX,                                            \
  368.             &GAMENAME##_tms36xx_interface                            \
  369.         },                                                            \
  370.         {                                                            \
  371.             SOUND_CUSTOM,                                            \
  372.             &GAMENAME##_custom_interface                            \
  373.         }                                                            \
  374.     }                                                                \
  375. };
  376.  
  377.  
  378. MACHINE_DRIVER(phoenix)
  379. MACHINE_DRIVER(pleiads)
  380.  
  381.  
  382.  
  383. /***************************************************************************
  384.  
  385.   Game driver(s)
  386.  
  387. ***************************************************************************/
  388.  
  389. ROM_START( phoenix )
  390.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  391.     ROM_LOAD( "ic45",         0x0000, 0x0800, 0x9f68086b )
  392.     ROM_LOAD( "ic46",         0x0800, 0x0800, 0x273a4a82 )
  393.     ROM_LOAD( "ic47",         0x1000, 0x0800, 0x3d4284b9 )
  394.     ROM_LOAD( "ic48",         0x1800, 0x0800, 0xcb5d9915 )
  395.     ROM_LOAD( "ic49",         0x2000, 0x0800, 0xa105e4e7 )
  396.     ROM_LOAD( "ic50",         0x2800, 0x0800, 0xac5e9ec1 )
  397.     ROM_LOAD( "ic51",         0x3000, 0x0800, 0x2eab35b4 )
  398.     ROM_LOAD( "ic52",         0x3800, 0x0800, 0xaff8e9c5 )
  399.  
  400.     ROM_REGION( 0x1000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  401.     ROM_LOAD( "ic23",         0x0000, 0x0800, 0x3c7e623f )
  402.     ROM_LOAD( "ic24",         0x0800, 0x0800, 0x59916d3b )
  403.  
  404.     ROM_REGION( 0x1000, REGION_GFX2 | REGIONFLAG_DISPOSE )
  405.     ROM_LOAD( "ic39",         0x0000, 0x0800, 0x53413e8f )
  406.     ROM_LOAD( "ic40",         0x0800, 0x0800, 0x0be2ba91 )
  407.  
  408.     ROM_REGION( 0x0200, REGION_PROMS )
  409.     ROM_LOAD( "ic40_b.bin",   0x0000, 0x0100, 0x79350b25 )  /* palette low bits */
  410.     ROM_LOAD( "ic41_a.bin",   0x0100, 0x0100, 0xe176b768 )  /* palette high bits */
  411. ROM_END
  412.  
  413. ROM_START( phoenixa )
  414.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  415.     ROM_LOAD( "ic45.k1",      0x0000, 0x0800, 0xc7a9b499 )
  416.     ROM_LOAD( "ic46.k2",      0x0800, 0x0800, 0xd0e6ae1b )
  417.     ROM_LOAD( "ic47.k3",      0x1000, 0x0800, 0x64bf463a )
  418.     ROM_LOAD( "ic48.k4",      0x1800, 0x0800, 0x1b20fe62 )
  419.     ROM_LOAD( "phoenixc.49",  0x2000, 0x0800, 0x1a1ce0d0 )
  420.     ROM_LOAD( "ic50",         0x2800, 0x0800, 0xac5e9ec1 )
  421.     ROM_LOAD( "ic51",         0x3000, 0x0800, 0x2eab35b4 )
  422.     ROM_LOAD( "ic52",         0x3800, 0x0800, 0xaff8e9c5 )
  423.  
  424.     ROM_REGION( 0x1000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  425.     ROM_LOAD( "ic23",         0x0000, 0x0800, 0x3c7e623f )
  426.     ROM_LOAD( "ic24",         0x0800, 0x0800, 0x59916d3b )
  427.  
  428.     ROM_REGION( 0x1000, REGION_GFX2 | REGIONFLAG_DISPOSE )
  429.     ROM_LOAD( "phoenixc.39",  0x0000, 0x0800, 0xbb0525ed )
  430.     ROM_LOAD( "phoenixc.40",  0x0800, 0x0800, 0x4178aa4f )
  431.  
  432.     ROM_REGION( 0x0200, REGION_PROMS )
  433.     ROM_LOAD( "ic40_b.bin",   0x0000, 0x0100, 0x79350b25 )  /* palette low bits */
  434.     ROM_LOAD( "ic41_a.bin",   0x0100, 0x0100, 0xe176b768 )  /* palette high bits */
  435. ROM_END
  436.  
  437. ROM_START( phoenixt )
  438.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  439.     ROM_LOAD( "phoenix.45",   0x0000, 0x0800, 0x5b8c55a8 )
  440.     ROM_LOAD( "phoenix.46",   0x0800, 0x0800, 0xdbc942fa )
  441.     ROM_LOAD( "phoenix.47",   0x1000, 0x0800, 0xcbbb8839 )
  442.     ROM_LOAD( "phoenix.48",   0x1800, 0x0800, 0xcb65eff8 )
  443.     ROM_LOAD( "phoenix.49",   0x2000, 0x0800, 0xc8a5d6d6 )
  444.     ROM_LOAD( "ic50",         0x2800, 0x0800, 0xac5e9ec1 )
  445.     ROM_LOAD( "ic51",         0x3000, 0x0800, 0x2eab35b4 )
  446.     ROM_LOAD( "phoenix.52",   0x3800, 0x0800, 0xb9915263 )
  447.  
  448.     ROM_REGION( 0x1000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  449.     ROM_LOAD( "ic23",         0x0000, 0x0800, 0x3c7e623f )
  450.     ROM_LOAD( "ic24",         0x0800, 0x0800, 0x59916d3b )
  451.  
  452.     ROM_REGION( 0x1000, REGION_GFX2 | REGIONFLAG_DISPOSE )
  453.     ROM_LOAD( "ic39",         0x0000, 0x0800, 0x53413e8f )
  454.     ROM_LOAD( "ic40",         0x0800, 0x0800, 0x0be2ba91 )
  455.  
  456.     ROM_REGION( 0x0200, REGION_PROMS )
  457.     ROM_LOAD( "ic40_b.bin",   0x0000, 0x0100, 0x79350b25 )  /* palette low bits */
  458.     ROM_LOAD( "ic41_a.bin",   0x0100, 0x0100, 0xe176b768 )  /* palette high bits */
  459. ROM_END
  460.  
  461. ROM_START( phoenix3 )
  462.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  463.     ROM_LOAD( "phoenix3.45",  0x0000, 0x0800, 0xa362cda0 )
  464.     ROM_LOAD( "phoenix3.46",  0x0800, 0x0800, 0x5748f486 )
  465.     ROM_LOAD( "phoenix.47",   0x1000, 0x0800, 0xcbbb8839 )
  466.     ROM_LOAD( "phoenix3.48",  0x1800, 0x0800, 0xb5d97a4d )
  467.     ROM_LOAD( "ic49",         0x2000, 0x0800, 0xa105e4e7 )
  468.     ROM_LOAD( "ic50",         0x2800, 0x0800, 0xac5e9ec1 )
  469.     ROM_LOAD( "ic51",         0x3000, 0x0800, 0x2eab35b4 )
  470.     ROM_LOAD( "phoenix3.52",  0x3800, 0x0800, 0xd2c5c984 )
  471.  
  472.     ROM_REGION( 0x1000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  473.     ROM_LOAD( "ic23",         0x0000, 0x0800, 0x3c7e623f )
  474.     ROM_LOAD( "ic24",         0x0800, 0x0800, 0x59916d3b )
  475.  
  476.     ROM_REGION( 0x1000, REGION_GFX2 | REGIONFLAG_DISPOSE )
  477.     ROM_LOAD( "ic39",         0x0000, 0x0800, 0x53413e8f )
  478.     ROM_LOAD( "ic40",         0x0800, 0x0800, 0x0be2ba91 )
  479.  
  480.     ROM_REGION( 0x0200, REGION_PROMS )
  481.     ROM_LOAD( "ic40_b.bin",   0x0000, 0x0100, 0x79350b25 )  /* palette low bits */
  482.     ROM_LOAD( "ic41_a.bin",   0x0100, 0x0100, 0xe176b768 )  /* palette high bits */
  483. ROM_END
  484.  
  485. ROM_START( phoenixc )
  486.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  487.     ROM_LOAD( "phoenix.45",   0x0000, 0x0800, 0x5b8c55a8 )
  488.     ROM_LOAD( "phoenix.46",   0x0800, 0x0800, 0xdbc942fa )
  489.     ROM_LOAD( "phoenix.47",   0x1000, 0x0800, 0xcbbb8839 )
  490.     ROM_LOAD( "phoenixc.48",  0x1800, 0x0800, 0x5ae0b215 )
  491.     ROM_LOAD( "phoenixc.49",  0x2000, 0x0800, 0x1a1ce0d0 )
  492.     ROM_LOAD( "ic50",         0x2800, 0x0800, 0xac5e9ec1 )
  493.     ROM_LOAD( "ic51",         0x3000, 0x0800, 0x2eab35b4 )
  494.     ROM_LOAD( "phoenixc.52",  0x3800, 0x0800, 0x8424d7c4 )
  495.  
  496.     ROM_REGION( 0x1000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  497.     ROM_LOAD( "ic23",         0x0000, 0x0800, 0x3c7e623f )
  498.     ROM_LOAD( "ic24",         0x0800, 0x0800, 0x59916d3b )
  499.  
  500.     ROM_REGION( 0x1000, REGION_GFX2 | REGIONFLAG_DISPOSE )
  501.     ROM_LOAD( "phoenixc.39",  0x0000, 0x0800, 0xbb0525ed )
  502.     ROM_LOAD( "phoenixc.40",  0x0800, 0x0800, 0x4178aa4f )
  503.  
  504.     ROM_REGION( 0x0200, REGION_PROMS )
  505.     ROM_LOAD( "ic40_b.bin",   0x0000, 0x0100, 0x79350b25 )  /* palette low bits */
  506.     ROM_LOAD( "ic41_a.bin",   0x0100, 0x0100, 0xe176b768 )  /* palette high bits */
  507. ROM_END
  508.  
  509. ROM_START( pleiads )
  510.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  511.     ROM_LOAD( "ic47.r1",      0x0000, 0x0800, 0x960212c8 )
  512.     ROM_LOAD( "ic48.r2",      0x0800, 0x0800, 0xb254217c )
  513.     ROM_LOAD( "ic47.bin",     0x1000, 0x0800, 0x87e700bb ) /* IC 49 on real board */
  514.     ROM_LOAD( "ic48.bin",     0x1800, 0x0800, 0x2d5198d0 ) /* IC 50 on real board */
  515.     ROM_LOAD( "ic51.r5",      0x2000, 0x0800, 0x49c629bc )
  516.     ROM_LOAD( "ic50.bin",     0x2800, 0x0800, 0xf1a8a00d ) /* IC 52 on real board */
  517.     ROM_LOAD( "ic53.r7",      0x3000, 0x0800, 0xb5f07fbc )
  518.     ROM_LOAD( "ic52.bin",     0x3800, 0x0800, 0xb1b5a8a6 ) /* IC 54 on real board */
  519.  
  520.     ROM_REGION( 0x1000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  521.     ROM_LOAD( "ic23.bin",     0x0000, 0x0800, 0x4e30f9e7 ) /* IC 45 on real board */
  522.     ROM_LOAD( "ic24.bin",     0x0800, 0x0800, 0x5188fc29 ) /* IC 44 on real board */
  523.  
  524.     ROM_REGION( 0x1000, REGION_GFX2 | REGIONFLAG_DISPOSE )
  525.     ROM_LOAD( "ic39.bin",     0x0000, 0x0800, 0x85866607 ) /* IC 27 on real board */
  526.     ROM_LOAD( "ic40.bin",     0x0800, 0x0800, 0xa841d511 ) /* IC 26 on real board */
  527.  
  528.     ROM_REGION( 0x0200, REGION_PROMS )
  529.     ROM_LOAD( "7611-5.26",   0x0000, 0x0100, 0x7a1bcb1e )   /* palette low bits */
  530.     ROM_LOAD( "7611-5.33",   0x0100, 0x0100, 0xe38eeb83 )   /* palette high bits */
  531. ROM_END
  532.  
  533. ROM_START( pleiadbl )
  534.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  535.     ROM_LOAD( "ic45.bin",     0x0000, 0x0800, 0x93fc2958 )
  536.     ROM_LOAD( "ic46.bin",     0x0800, 0x0800, 0xe2b5b8cd )
  537.     ROM_LOAD( "ic47.bin",     0x1000, 0x0800, 0x87e700bb )
  538.     ROM_LOAD( "ic48.bin",     0x1800, 0x0800, 0x2d5198d0 )
  539.     ROM_LOAD( "ic49.bin",     0x2000, 0x0800, 0x9dc73e63 )
  540.     ROM_LOAD( "ic50.bin",     0x2800, 0x0800, 0xf1a8a00d )
  541.     ROM_LOAD( "ic51.bin",     0x3000, 0x0800, 0x6f56f317 )
  542.     ROM_LOAD( "ic52.bin",     0x3800, 0x0800, 0xb1b5a8a6 )
  543.  
  544.     ROM_REGION( 0x1000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  545.     ROM_LOAD( "ic23.bin",     0x0000, 0x0800, 0x4e30f9e7 )
  546.     ROM_LOAD( "ic24.bin",     0x0800, 0x0800, 0x5188fc29 )
  547.  
  548.     ROM_REGION( 0x1000, REGION_GFX2 | REGIONFLAG_DISPOSE )
  549.     ROM_LOAD( "ic39.bin",     0x0000, 0x0800, 0x85866607 )
  550.     ROM_LOAD( "ic40.bin",     0x0800, 0x0800, 0xa841d511 )
  551.  
  552.     ROM_REGION( 0x0200, REGION_PROMS )
  553.     ROM_LOAD( "7611-5.26",   0x0000, 0x0100, 0x7a1bcb1e )   /* palette low bits */
  554.     ROM_LOAD( "7611-5.33",   0x0100, 0x0100, 0xe38eeb83 )   /* palette high bits */
  555. ROM_END
  556.  
  557. ROM_START( pleiadce )
  558.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  559.     ROM_LOAD( "pleiades.47",  0x0000, 0x0800, 0x711e2ba0 )
  560.     ROM_LOAD( "pleiades.48",  0x0800, 0x0800, 0x93a36943 )
  561.     ROM_LOAD( "ic47.bin",     0x1000, 0x0800, 0x87e700bb )
  562.     ROM_LOAD( "pleiades.50",  0x1800, 0x0800, 0x5a9beba0 )
  563.     ROM_LOAD( "pleiades.51",  0x2000, 0x0800, 0x1d828719 )
  564.     ROM_LOAD( "ic50.bin",     0x2800, 0x0800, 0xf1a8a00d )
  565.     ROM_LOAD( "pleiades.53",  0x3000, 0x0800, 0x037b319c )
  566.     ROM_LOAD( "pleiades.54",  0x3800, 0x0800, 0xca264c7c )
  567.  
  568.     ROM_REGION( 0x1000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  569.     ROM_LOAD( "pleiades.45",  0x0000, 0x0800, 0x8dbd3785 )
  570.     ROM_LOAD( "pleiades.44",  0x0800, 0x0800, 0x0db3e436 )
  571.  
  572.     ROM_REGION( 0x1000, REGION_GFX2 | REGIONFLAG_DISPOSE )
  573.     ROM_LOAD( "ic39.bin",     0x0000, 0x0800, 0x85866607 )
  574.     ROM_LOAD( "ic40.bin",     0x0800, 0x0800, 0xa841d511 )
  575.  
  576.     ROM_REGION( 0x0200, REGION_PROMS )
  577.     ROM_LOAD( "7611-5.26",   0x0000, 0x0100, 0x7a1bcb1e )   /* palette low bits */
  578.     ROM_LOAD( "7611-5.33",   0x0100, 0x0100, 0xe38eeb83 )   /* palette high bits */
  579. ROM_END
  580.  
  581.  
  582.  
  583. GAMEX( 1980, phoenix,  0,       phoenix, phoenix,  0, ROT90, "Amstar", "Phoenix (Amstar)", GAME_NO_COCKTAIL )
  584. GAMEX( 1980, phoenixa, phoenix, phoenix, phoenixa, 0, ROT90, "Amstar (Centuri license)", "Phoenix (Centuri)", GAME_NO_COCKTAIL )
  585. GAMEX( 1980, phoenixt, phoenix, phoenix, phoenixt, 0, ROT90, "Taito", "Phoenix (Taito)", GAME_NO_COCKTAIL )
  586. GAMEX( 1980, phoenix3, phoenix, phoenix, phoenix3, 0, ROT90, "bootleg", "Phoenix (T.P.N.)", GAME_NO_COCKTAIL )
  587. GAMEX( 1981, phoenixc, phoenix, phoenix, phoenixt, 0, ROT90, "bootleg?", "Phoenix (IRECSA, G.G.I Corp)", GAME_NO_COCKTAIL )
  588. GAMEX( 1981, pleiads,  0,       pleiads, pleiads,  0, ROT90, "Tehkan", "Pleiads (Tehkan)", GAME_NO_COCKTAIL )
  589. GAMEX( 1981, pleiadbl, pleiads, pleiads, pleiads,  0, ROT90, "bootleg", "Pleiads (bootleg)", GAME_NO_COCKTAIL )
  590. GAMEX( 1981, pleiadce, pleiads, pleiads, pleiads,  0, ROT90, "Tehkan (Centuri license)", "Pleiads (Centuri)", GAME_NO_COCKTAIL )
  591.  
  592.